Skip to content

Conversation

@LukasDeco
Copy link
Collaborator

  • program: make lp shares reduce only
  • init
  • rm more fields
  • make tests build
  • start sdk changes
  • init new margin calc
  • deposit and transfer into
  • add settle pnl
  • program: add withdraw
  • add more ix
  • add new meets withdraw req fn
  • enter/exit liquidation logic
  • moar
  • start liquidation logic
  • other liquidation fns
  • make build work
  • more updates
  • always calc isolated pos
  • rm isolated position market index logic
  • moar
  • program: rm the isolated position market index
  • some tweaks
  • rm some old margin code
  • tweak meets withdraw requirements
  • rm liquidation mode changing context
  • handle liquidation id and bit flags
  • more liquidation changes
  • clean
  • fix force cancel orders
  • update validate liquidation
  • moar
  • rename is_being_liquidated
  • start adding test
  • program: add validate for liq borrow for perp pnl
  • program: add test for isolated margin calc
  • is bankrupt test
  • fix cancel orders
  • fix set liquidation status
  • more tweaks
  • clean up naming
  • update last active slot for isolated position liq
  • another liquidation review
  • add test
  • cargo fmt --
  • tweak naming
  • add test to make sure false liquidaiton wont be triggered
  • test meets withdraw
  • change is bankrupt
  • more
  • update uses of exit isolated liquidaiton
  • moar
  • moar
  • reduce diff
  • moar
  • modularize some for tests
  • add tests for the pnl for deposit liquidation
  • tests for isolated position transfer
  • test for update spot balance
  • test for settle pnl
  • add perp position max margin
  • program: test for custom perp position margin ratio
  • add test for margin calc for disable hlm
  • update test name
  • make max margin ratio persist
  • add liquidation mode test
  • more tests to make sure liqudiations dont bleed over
  • change test name
  • fix broken cargo tests
  • cargo fmt --
  • first ts test
  • isolatedPositionLiquidatePerp test
  • isolatedPositionLiquidatePerpwithFill test
  • fix expired position
  • cargo fmt --
  • feat: initial SDK Changes for iso pos
  • feat: margin calc unit tests
  • temp
  • feat: finally - parity with on-chain cargo test
  • fix: PR feedback and cleanup + decoding position flag wrong
  • feat: deposit into iso position ixs
  • temp: pr feedback nother round
  • feat: per perp pos max margin ratio
  • feat: additional ixs for transfer into iso + update perp margin ratio
  • feat: revamp liquidation checker functions for cross vs iso margin
  • fix: adjust health getter for user
  • fix: liq statuses add to return signature
  • chore: post rebase cleaner upper
  • fix: missing params from per market lev
  • feat: zero out account withdraw from perp position
  • fix: available positions logic update for iso
  • feat: iso position txs cleanup + ix ordering

@LukasDeco LukasDeco closed this Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants